package com.liuxinlong.jobs;

import com.liuxinlong.modules.material.service.MaterialService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * 使用quartz框架
 */
@Service
@Slf4j
@Component("syncDrawFileTask")
public class SyncDrawFileTask {

    @Autowired
    private MaterialService materialService;

    /**
     * 业务逻辑
     */
    public void reptilian() {
        log.info("SyncDrawFileTask start...");

//        try {
            materialService.syncDrawFile();
//        } catch (Exception e) {
//
//        }
        log.info("SyncDrawFileTask end...");
    }
}

